80134: Function test xfi:entity-identifier

Documentation

Tests of function xfi:entity-identifier($item as element(xbrli:context)) as element(xbrli:identifier)

Owners

Name Affiliation Email Start End
Herm Fischer UBMatrix / Mark V Systems fischer@markv.com 19-02-2008 at 00:00:00

References

http://www.xbrl.org/Specification/XF-PWD-2006-12-07.htm#_Toc152670688

Test Case Variations


V-01 Returns correct identifier for entity

Documentation

Inputs

  • schema: entity-tests.xsd
  • instance: entity-instance.xml (DTS Discovery starting point) (ID=V01)
  • Function Call: xfi:entity-identifier( xfi:entity( //concept:c1[1] ) )

    (against file V01)

Outputs

  • Result test: $result instance of element(xbrli:identifier) and count( $result ) eq 1 and $result is /xbrli:xbrl/xbrli:context[@id eq 'context-1']/xbrli:entity/xbrli:identifier

V-02 Identifier for entity 2

Documentation

Inputs

  • schema: entity-tests.xsd
  • instance: entity-instance.xml (DTS Discovery starting point) (ID=V02)
  • Function Call: xfi:entity-identifier( (//xbrli:entity)[2] )

    (against file V02)

Outputs

  • Result test: $result instance of element(xbrli:identifier) and count( $result ) eq 1 and $result is /xbrli:xbrl/xbrli:context[@id eq 'context-2']//xbrli:entity/xbrli:identifier

V-03 Wrong node to function

Documentation

XPath-defined error for node type incorrect.

Inputs

  • schema: entity-tests.xsd
  • instance: entity-instance.xml (DTS Discovery starting point) (ID=V03)
  • Function Call: xfi:entity-identifier( /xbrli:xbrl/concept:c1[2] )

    (against file V03)

Outputs

  • Error code: xqt-err:XPTY0004

V-04 A sequence of entities as argument

Documentation

XPath-defined error for node type incorrect arity of argument.

Inputs

Outputs

  • Error code: xqt-err:XPTY0004

Revisions

Name On Details
Herm Fischer 19-02-2008 at 00:00:00 Created the test case.